﻿using System;

namespace ECommerce.Controls
{
    public partial class HeaderSearch : BaseUserControl
    {
        protected void Page_PreRender(object sender, EventArgs e)
        {
            ButtonSearch.Text = GetLocalResourceString("HeaderSearch.ButtonSearch");
			this.LHeaderSearchLabel.Text = GetLocalResourceString("HeaderSearch.SearchLabel");
        }

		protected void ButtonSearch_Click(object sender, EventArgs e)
		{
			Response.Redirect("~/Category.aspx?searchkeyword=" + this.TextSearchString.Text.Trim() + "&categoryid=" + this.TopCategoryList_HeaderSearch.SelectedCategoryID);
		}
    }
}